import App from '../App'
import Index from '../pages/Index.vue'
import Empty from '../pages/Empty.vue'
export default [
    {
        path: '/',
        component: App,
        children: [
            {path: '',redirect:'/index'},
            {path:'/index',Index}
        ]
    },
    
    {
        name:'empty',path:'*',component:Empty,beforeEnter: (to, from, next) => {
            console.log('小弟B：哎呀妈呀！大兄弟，这是要去哪呀？', to)
            console.log('小弟A：大兄弟，哪儿旮沓的呀！', from)
            next() // 大哥：过去吧！
            // 调用next通过路由
            //console.log(app.$store)
            
       }
    }

]